package com.borderbears.frontend.camera
{
	import org.papervision3d.core.math.Number3D;
	import org.papervision3d.objects.DisplayObject3D;
	
	public class CamNode
	{
		
		public var camera:DisplayObject3D = new DisplayObject3D();
		public var target:DisplayObject3D = new DisplayObject3D();
		
		public function CamNode(cam:DisplayObject3D=null, tar:DisplayObject3D=null)
		{
			if (cam != null && tar != null) {
				camera = cam;
				target = tar;
				
				// Correction for some weird bug.
				camera.x *= -1;
				target.x *= -1;
				camera.lookAt(target);
				
			}
		}

	}
}